/*
 * Account.java
 *
 */

package com.javacore.day3.deposit;

import java.util.Scanner;

/**
 *
 * @author 
 */
public class Account {
    
    /** Creates a new instance of Account */
    public Account() {
    }
    
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // Declaring the variables
//        int accountNumber;
//        double accountBalance;
        
        // Initializing the variables
        System.out.println("Enter the details for the new Account to be created....");
        System.out.println("Enter the Account Number:");
        Scanner scan = new Scanner(System.in);
        int accountNumber = scan.nextInt();
        System.out.println("Enter the Account Balance:");
        double accountBalance = scan.nextDouble();
        
        // Displaying the values of the variables.
        System.out.println("The details of the new account are:");
        System.out.printf("Account Number: %d", accountNumber);
        System.out.printf("\nAccount Balance: $%.2f", accountBalance);
    }
}